#pragma once
#include "win_impl_base.hpp"
#include "Win32\\GdiPaint.h"
#include "Win32\\WinHost.h"
//#include "TheList.h"

enum EnListType
{
	EN_LISTTYPE_QUES,
	EN_LISTTYPE_ERROR,
	EN_LISTTYPE_OK,
};

struct stListInfo 
{
	tString strIndex;
	tString strName;
	tString strInfo;
	EnListType type;
};

class CMainFrame :
	public WindowImplBaseCustom
{
public:
	CMainFrame(void);
	virtual ~CMainFrame(void);
	LPCTSTR GetWindowClassName() const { return _T("CMainFrame"); };
	virtual void OnFinalMessage(HWND hWnd);
	virtual void Init();
	virtual LRESULT OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	void CMainFrame::ChangeUrlEditBGImg(TNotifyUI& msg,LPCTSTR imgString);

	void Close( );

	int CreateWarningForm();
	int CreateSelectPage();

	LRESULT HandleCustomMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

	virtual CControlUI* CreateControl(LPCTSTR pstrClass);

protected:
	virtual tString GetSkinFile();
	void Notify(TNotifyUI& msg);
	void OnExit(TNotifyUI& msg);
	void OnTimer(TNotifyUI& msg);

protected:
	CTabLayoutUI* m_pTabLayout;
public:
	WinHost *m_host;
	FCNative *m_native;
	FCSize GetClientSize();
	void onLoad();
	virtual LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
};

